home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / bbs / inf111.zip / INFOMAIL.DOC < prev    next >
Text File  |  1996-06-29  |  65KB  |  1,682 lines

  1.  
  2.  
  3.                         Centurion InfoMail 1.11
  4.  
  5.                  A Document Server for Fidonet Systems
  6.  
  7.                     Copyright (C) Damian Walker 1996
  8.  
  9.                                   -*-
  10.  
  11.                        Dedicated to the Memory of
  12.  
  13.                             Trevor H. Walker
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. InfoMail 1.11
  62.  
  63. CONTENTS
  64.  
  65.         1.      WHAT IS INFOMAIL
  66.         1.1.    Program Description
  67.         1.2.    System Requirements
  68.         1.3.    Disclaimer
  69.         1.4.    Acknowledgements
  70.         1.5.    Version History
  71.         1.6.    A Note for 386 Users
  72.  
  73.         2.      SETTING UP INFOMAIL
  74.         2.1.    Global Parameters
  75.         2.1.1.  Netmail Directory
  76.         2.1.2.  InfoMail Name and Address
  77.         2.1.3.  Header and Footer Files
  78.         2.1.4.  Saving Your Setup
  79.         2.2.    The Document List
  80.         2.2.1.  Adding a document
  81.         2.2.2.  Document Naming
  82.         2.2.3.  The Access Counter
  83.         2.2.4.  Document Flags
  84.         2.2.5.  Document Subject and Message Status
  85.         2.2.6.  Remote Maintenance Passwording
  86.         2.2.7.  Document Filename
  87.         2.2.8.  Saving the Document Record
  88.         2.2.9.  Editing and Removing Documents
  89.         2.2.10. Saving the Document List
  90.         2.3.    InfoMail Text Files
  91.         2.3.1.  System Limits and Conventions
  92.         2.3.2.  Using Macros in Text Files
  93.         2.4.    Setting up InfoMail for Multiple Networks
  94.         2.5.    Upgrading from a Previous Version of InfoMail
  95.  
  96.         3.      USING INFOMAIL
  97.         3.1.    Running InfoMail on your Mailer
  98.         3.2.    Requesting Documents from InfoMail
  99.         3.3.    Remotely Updating Documents
  100.         3.4.    The InfoMail Semaphore File
  101.  
  102.         4.      INFOMAIL REFERENCE
  103.         4.1.    Command Line Format
  104.         4.2.    Global Setup Fields
  105.         4.3.    Document List Fields
  106.         4.4.    InfoMail Text Macros
  107.  
  108.         5.      DEVELOPER'S GUIDE
  109.         5.1.    The InfoMail File Formats
  110.         5.2.    Supplied InfoMail Headers
  111.         5.3.    Messages Generated by InfoMail
  112.  
  113.         6.      CONCLUSION
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120. Contents                                                               2
  121. InfoMail 1.11
  122.  
  123. 1.      WHAT IS INFOMAIL?
  124.  
  125.         Before attempting to install and use InfoMail, it could be
  126.         advisable to find out what the program is about-- what it is
  127.         intended to do, what it is not intended to do, what its
  128.         requirements are, and what purposes it could be put to.
  129.  
  130. 1.1.    Program Description
  131.  
  132.         InfoMail is a document server for Fidonet systems.  It scans
  133.         your netmail directory for messages addressed to it, and
  134.         performs some action based on those messages.
  135.  
  136.         Its basic function is to send out documents which the user has
  137.         requested.  A document is usually in the form of a text file,
  138.         which can be sent in the body of a reply to the user who
  139.         requested the document.
  140.  
  141.         A secondary function is to allow users to alter documents
  142.         remotely, via netmail.  This allows users who cannot run
  143.         InfoMail themselves to have their own documents hosted at
  144.         another system.
  145.  
  146.         There are many uses which InfoMail can be put to.  It has been
  147.         used to send out BBS information, echo descriptions and rules,
  148.         reviews of games, FAQ documents and even a price list.  The
  149.         number of other uses which may be found for it are limited only
  150.         by the imagination.
  151.  
  152.         ****************************************************************
  153.         This program is in the public domain.  This means that the
  154.         program can be distributed and used, for an unlimited period,
  155.         free of charge.  If you find InfoMail useful, the author would
  156.         be interested to hear from you.  Your views on the program, and
  157.         the uses you may find for it, are valuable sources of
  158.         information.
  159.         ****************************************************************
  160.  
  161.         Although the program name and code is protected by copyright,
  162.         the author would be pleased to see similar programs appearing
  163.         for the PC and other platforms.  Should you as an author wish to
  164.         write your own version of InfoMail, feel free to use the data
  165.         structures, addressing methods and macros which InfoMail uses.
  166.         Feel free also to use 'InfoMail' as the default name for your
  167.         program to answer to.  The author is more interested in InfoMail
  168.         as a widespread idea than as a vehicle for personal fame and (!)
  169.         fortune.
  170.  
  171. 1.2.    System Requirements
  172.  
  173.         InfoMail has been written to work on an IBM-compatible PC.  The
  174.         exact minimum requirements are not known, but there is no reason
  175.         why this program should not work on anything from an 8088-based
  176.         PC.  The smallest machine it has been tested on is an 386sx/16
  177.         with 2mb RAM.  Performance is adequate on that machine.
  178.  
  179.  
  180. What is InfoMail?                                                      3
  181. InfoMail 1.11
  182.  
  183.         In order to be useful, InfoMail must be used with a Fidonet
  184.         system which uses a *.MSG-style netmail directory.  This
  185.         includes FrontDoor, Terminate, and also static mailers such as
  186.         BinkleyTerm and Xenia if these mailers are used with a mail
  187.         processor supporting *.MSG message areas.
  188.  
  189.         InfoMail uses 80x25 text mode, in colour.  It has also been
  190.         tested with a true monochrome screen.  It may be used in 80x50
  191.         mode, although the bottom half of the screen will not be cleared
  192.         when using the setup editor and the document list editor.
  193.  
  194. 1.3.    Disclaimer
  195.  
  196.                           **** IMPORTANT ****
  197.  
  198.         No warranty or guarantee is provided with this program.  While
  199.         the author has attempted to ensure that the program is fully
  200.         operational and bug-free, no responsibilty can be taken by the
  201.         author in the event that damage or inconvenience is caused by
  202.         the program.  Run InfoMail at your own risk.
  203.  
  204. 1.4.    Acknowledgements
  205.  
  206.         Thanks go to the following people for their help in the ongoing
  207.         development of InfoMail:
  208.  
  209.         Bill Welch (2:254/222), for beta testing version 1.00.
  210.  
  211.         Bill Birrell (2:2504/200), for beta testing versions 1.00, 1.10
  212.         and 1.11, and for general programming help in the C echo.
  213.  
  214.         Steven Holme (2:2503/216), for beta testing versions 1.00 and
  215.         1.10, and for some useful suggestions.
  216.  
  217.         Jim O'Neill (2:256/68), for beta testing version 1.10.
  218.  
  219.         Martyn Wilkins (2:442/608), for promoting version 1.00 in
  220.         echomail, and for beta testing versions 1.10 and 1.11.
  221.  
  222.         Peter Barley (2:2502/666.15), for beta testing versions 1.00 ,
  223.         1.10 and 1.11, and for many useful suggestions.
  224.  
  225.         Andy Altoft (2:2502/666.2107), for beta testing versions 1.00
  226.         and 1.10.
  227.  
  228.         Peter Burnett (2:441/80), for some useful suggestions, and for
  229.         beta testing version 1.11.
  230.  
  231.         Joaquim Homrighausen (2:270/17), for hatching versions 1.00 and
  232.         1.11 on SDSFRONT, thus attracting interest in the program from
  233.         across the world.
  234.  
  235.         Kev Baillie (2:2502/1), for beta testing version 1.11, and for
  236.         many useful suggestions for future releases of InfoMail.
  237.  
  238.  
  239.  
  240. What is InfoMail?                                                      4
  241. InfoMail 1.11
  242.  
  243. 1.5.    Version History
  244.  
  245.         Version 1.00, original InfoMail, with the following features:
  246.         - Alterable name and address
  247.         - Universal kill flag for outgoing messages
  248.         - 8-character document names
  249.         - Posts documents up to 8k in size
  250.  
  251.         Version 1.10, first upgrade release, with these additions:
  252.         - Global header and footer files for outgoing messages
  253.         - 16-character document names
  254.         - Document access counter
  255.         - Macros for use in headers, footers and documents
  256.         - Secret (unlisted) documents
  257.         - Expanded subject line for outgoing messages
  258.         - Optional kill and other message flags for each document
  259.         - Remote maintenance of documents (passworded for security)
  260.         - Posts documents up to 16k in size
  261.         - Automatic upgrade facility
  262.         - Increased speed of document posting
  263.         - A couple of aesthetic minor interface bugs fixed
  264.         - A 386 version of the program
  265.  
  266.         Version 1.11
  267.         - Document List display bug corrected
  268.         - Some errors in the documentation were corrected
  269.  
  270. 1.6.    A Note for 386 Users
  271.  
  272.         InfoMail 1.10 came with a 386-specific executable file,
  273.         INFO386.EXE.  The performance gain for 386 users was not
  274.         noticeable, so this file has been removed from the distribution
  275.         archive for this version of InfoMail.
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. What is InfoMail?                                                      5
  301. InfoMail 1.11
  302.  
  303. 2.      SETTING UP INFOMAIL
  304.  
  305.         Before setting up InfoMail, it is necessary to create a
  306.         directory and extract the InfoMail archive into that directory.
  307.         As you are reading this document, it will be assumed that you
  308.         have managed to get that far without further help from this
  309.         manual.
  310.  
  311.         If you are upgrading from InfoMail 1.00 to 1.11, then you might
  312.         like to skip past the initial tutorial stage to section 2.5,
  313.         which deals with the easy upgrade procedure.  However, it is
  314.         still advisable to read through the rest of this section in
  315.         order to familiarise yourself with some of the new features of
  316.         1.11, and how to access them.
  317.  
  318.         If you are upgrading from InfoMail 1.10, then no upgrade is
  319.         necessary as InfoMail 1.11 uses the same files.  You can also
  320.         dispense with the InfoList utility, as the bug it was designed
  321.         to circumvent is not present in InfoMail 1.11.
  322.  
  323.         There are three parts to setting up InfoMail-- the global setup
  324.         parameters, the document list, and the document text files
  325.         themselves.
  326.  
  327.         This section of the manual will explore in tutorial form the
  328.         various aspects of setting up a functional InfoMail system.  It
  329.         will make reference to example files provided with the InfoMail
  330.         system. Feel free to follow it or not, as you please.
  331.  
  332. 2.1.    Global Parameters
  333.  
  334.         The first thing which needs to be set up in order for InfoMail
  335.         to function is the set of global parameters.  To set up
  336.         InfoMail's global parameters type the following at the command
  337.         prompt:
  338.  
  339.                 INFOMAIL -S
  340.  
  341.         Capitalisation is unimportant in this, and all, aspects of
  342.         InfoMail.  After you have pressed <RETURN>, you should be
  343.         presented with the InfoMail Setup Utility, which is centred upon
  344.         a window like the following:
  345.  
  346.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  347.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  348.         ▒│  Netmail  .\                                              │░▒
  349.         ▒│     Name  InfoMail                                        │░▒
  350.         ▒│  Address  2:2502/666.0                                    │░▒
  351.         ▒│   Header                                                  │░▒
  352.         ▒│   Footer                                                  │░▒
  353.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  354.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  355.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  356.  
  357.  
  358.  
  359.  
  360. Setting Up InfoMail                                                    6
  361. InfoMail 1.11
  362.  
  363.         As you load the setup utility for the first time, it creates the
  364.         file INFOMAIL.CFG in your InfoMail directory, and writes to it
  365.         the default settings shown in the window above.
  366.  
  367.         It is unlikely that these settings will be to your taste, unless
  368.         you happen to take over the running of the author's node.  The
  369.         following subsections take you through altering these settings.
  370.  
  371. 2.1.1.  Netmail Directory
  372.  
  373.         The 'Netmail' field at the top of the window refers to the
  374.         netmail directory.  This is the directory in which your mailer
  375.         or mail processor stores inbound and outbound *.MSG netmails.
  376.         If you use a Hudson or Jam base to store netmail, you will have
  377.         to change your software to use to *.MSG netmails before running
  378.         InfoMail.
  379.  
  380.         When you start the setup editor, the Netmail field should be
  381.         highlighted.  Press <RETURN> when the field is highlighted to
  382.         change the netmail directory.  When you have finished editing
  383.         your netmail directory, InfoMail will capitalise it and add a
  384.         trailing backslash if one is not already present.
  385.  
  386. 2.1.2.  InfoMail Name and Address
  387.  
  388.         It is possible to change the name that InfoMail answers to.
  389.         Using default settings, users address InfoMail at your system
  390.         with the name 'InfoMail' as the 'Name' field shows.  If you
  391.         change this to 'Info', then users will have to address it as
  392.         'Info' instead of 'InfoMail'.
  393.  
  394.         It is recommended that you leave the Name field as 'InfoMail' in
  395.         order to standardise the use of InfoMail from the users' point
  396.         of view.  Whatever the Name field says, InfoMail will always
  397.         write its replies from 'InfoMail 1.11'.
  398.  
  399.         If you do wish to change this field, select the field name using
  400.         the cursor keys, and press <RETURN> when 'Name' is highlighted.
  401.  
  402.         It is far more likely that you will wish to change the 'Address'
  403.         field, and this course of action is highly recommended.  To
  404.         change the address field, highlight the 'Address' field name
  405.         using the cursor keys, and press <RETURN>.
  406.  
  407.         Here you should enter your point or node address.  If you are
  408.         running a node, it could be desirable to designate a point
  409.         address which InfoMail could use, for both aesthetic and
  410.         technical reasons.  When you have entered your point or node
  411.         address, InfoMail will add a '.0' (if necessary).
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420. Setting Up InfoMail                                                    7
  421. InfoMail 1.11
  422.  
  423. 2.1.3.  Header and Footer Files
  424.  
  425.         A feature introduced into InfoMail 1.10 allows you to add a
  426.         standard header and footer to all documents which InfoMail sends
  427.         out from your system.  These could contain your system name,
  428.         some brief advertisement, or perhaps technical information about
  429.         the document or message being sent.
  430.  
  431.         To specify a header file, move the cursor to the 'Header' field
  432.         and press <RETURN>.  There is a sample header file supplied with
  433.         InfoMail, with the filename HEADER.SAM.  As an example, enter
  434.         this the full path and file name of this file (only you know
  435.         what directory you have installed InfoMail into).
  436.  
  437.         A similar process allows you to specify a footer file.  Select
  438.         the 'Footer' field, and press <RETURN>.  There is a sample
  439.         footer file provided, called FOOTER.SAM, which you might like to
  440.         use for this example.
  441.  
  442.         Note that InfoMail does not check for the existence of these
  443.         files.  This allows you to specify the names of files you have
  444.         yet to create, without having to endure any annoying error
  445.         messages.
  446.  
  447.         Leaving the header and footer files blank allows you to forego
  448.         the thrill of using headers and footers on your documents.  If
  449.         you specify a header file but no footer file, your documets will
  450.         be posted with a header only.  The effects of supplying a footer
  451.         file without a header file are therefore quite predictable.
  452.  
  453. 2.1.4.  Saving Your Setup
  454.  
  455.         After making the changes mentioned so far, the main window of
  456.         the setup utility should resemble the following:
  457.  
  458.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  459.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  460.         ▒│  Netmail  C:\APPS\FD\MAIL\                                │░▒
  461.         ▒│     Name  InfoMail                                        │░▒
  462.         ▒│  Address  2:2502/666.3                                    │░▒
  463.         ▒│   Header  C:\UTILS\INFOMAIL\HEADER.SAM                    │░▒
  464.         ▒│   Footer  C:\UTILS\INFOMAIL\FOOTER.SAM                    │░▒
  465.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  466.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  467.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  468.  
  469.         To save these parameters, press <ESC>.  This will save a new
  470.         INFOMAIL.CFG file with the above values, and return you to the
  471.         command prompt.
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480. Setting Up InfoMail                                                    8
  481. InfoMail 1.11
  482.  
  483. 2.2.    The Document List
  484.  
  485.         When global parameters have been entered and saved, your next
  486.         task is to create a list of documents which users may request.
  487.         This can be anything from one document to 32767.  If you find
  488.         this number insufficient then the author will be very interested
  489.         to hear from you.
  490.  
  491.         Note that InfoMail will function with no documents defined in
  492.         the document list, but without documents to send, InfoMail's
  493.         usefulness is rather difficult to define.
  494.  
  495.         To run the document list maintenance utility, type in the
  496.         following on the command line:
  497.  
  498.                 INFOMAIL -L
  499.  
  500.         When you have pressed <RETURN>, you will be presented with the
  501.         InfoMail Document Maintenance utility, of which the central
  502.         window resembles the following:
  503.  
  504.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  505.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  506.         ▒│ X Document         Subject                                │▒▒
  507.         ▒│                                                           │░▒
  508.         ▒│                                                           │░▒
  509.         ▒│                                                           │░▒
  510.         ▒│                                                           │░▒
  511.         ▒│                                                           │░▒
  512.         ▒│                                                           │░▒
  513.         ▒│                                                           │░▒
  514.         ▒│                                                           │░▒
  515.         ▒│                                                           │░▒
  516.         ▒│                                                           │░▒
  517.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  518.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  519.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  520.  
  521.         As you load the document maintenance utility for the first time,
  522.         it will create an empty document list under the name of
  523.         INFOMAIL.DAT.
  524.  
  525. 2.2.1.  Adding a Document
  526.  
  527.         A document may be added by pressing <RETURN> when the blank
  528.         entry at the end of the list is highlighted.  At the moment, the
  529.         blank entry is the only entry in the list.  Select it and press
  530.         <RETURN>.  When you have done this the screen should change, and
  531.         resemble the following:
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540. Setting Up InfoMail                                                    9
  541. InfoMail 1.11
  542.  
  543.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  544.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  545.         ▒│ Document                                  Accessed:     0 │▒▒
  546.         ▒│  Macros?  Yes                                             │░▒
  547.         ▒│  Listed?  Yes                                             │░▒
  548.         ▒│  Subject                                                  │░▒
  549.         ▒│   Status  Kill                                            │░▒
  550.         ▒│ Password                                                  │░▒
  551.         ▒│     File                                                  │░▒
  552.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  553.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  554.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  555.  
  556.         This is a single (blank) document record.  You can edit the
  557.         various fields by moving up and down using the cursor keys and
  558.         pressing <RETURN> on any field you wish to edit.
  559.  
  560.         An example file called DOCUMENT.SAM is present in the
  561.         distribution archive of InfoMail, and the following sections
  562.         deal with this file as an example.
  563.  
  564. 2.2.2.  Document Naming
  565.  
  566.         The field which is highlighted as you first edit the document
  567.         record is 'Document', which is the document name.  This is the
  568.         name by which users will request the document, so it is
  569.         reasonably important that this field is just as you want it.
  570.         Changing this field later on may cause confusion as users
  571.         continue to request the old document name.
  572.  
  573.         To edit the document name, press <RETURN> when the 'Document'
  574.         field label is highlighted.  The document name may be of up to
  575.         16 characters, upper or lower case.  Case is not too important,
  576.         as document requests are case insensitive.  It is not a good
  577.         idea to include spaces in a document name, as this may interfere
  578.         with other features described later.
  579.  
  580.         For the purposes of this example, name the document 'Sample'.
  581.  
  582. 2.2.3.  The Access Counter
  583.  
  584.         This field shows how many times the document has been accessed,
  585.         and when adding a new document it should show 0.  It is of more
  586.         use when editing a document.  Pressing <RETURN> on this field
  587.         will reset the counter to 0.
  588.  
  589. 2.2.4.  Document Flags
  590.  
  591.         There are two document flags, Macros and Listed.  Macros
  592.         determines whether macros are to be used in the current
  593.         document.  Macros, described more fully later on, use the brace
  594.         symbols { and }, and the option to turn macros off has been
  595.         provided for those instances where documents are automatically
  596.         generated and contain the braces as part of normal text.
  597.  
  598.  
  599.  
  600. Setting Up InfoMail                                                   10
  601. InfoMail 1.11
  602.  
  603.         Listed determines whether this document name will appear when a
  604.         document list is sent out to users.  Setting this to 'No' will
  605.         hide the document.  This is useful in allowing selective access
  606.         to documents.
  607.  
  608.         Either of these fields may be flipped from 'Yes' to 'No' and
  609.         vice versa, simply by selecting the field label with the cursor
  610.         keys, and pressing <RETURN>. Since the sample document contains
  611.         macros, and we want it to be listed, make sure that both fields
  612.         contain 'Yes' for this example.
  613.  
  614. 2.2.5.  Document Subject and Message Status
  615.  
  616.         The 'Subject' field is the subject line which is put in the
  617.         message header whenever this document is posted to a user.  This
  618.         could simply be the document name, or it could be something a
  619.         little more descriptive.
  620.  
  621.         For this example, we want the subject line to be 'A Sample
  622.         Document'.  Edit the field by selecting 'Subject', pressing
  623.         <RETURN>, and typing in the desired subject name.
  624.  
  625.         Status is the status of outgoing messages for this document.
  626.         The available message flags are Kill, Crash, File (attach), FReq
  627.         (file request), Hold and Update (request).
  628.  
  629.         To edit the message status, select status and press <RETURN>.
  630.         Each of the flags may be toggled on or off by pressing its
  631.         intial letter, apart from the case of FReq where the key is 'R'.
  632.  
  633.         For the purposes of the sample document, the default flag
  634.         setting of 'Kill' should be sufficient.  You might like to try
  635.         other flag settings just to familiarise yourself with the
  636.         procedure of setting message flags.
  637.  
  638.         When using File, FReq and Update, the message subject is used as
  639.         a filename, just like the normal Fidonet standard.  If you
  640.         wanted InfoMail to return a binary file with a document via
  641.         crash mail, example settings for Status and Subject would be as
  642.         follows:
  643.  
  644.         Subject: C:\UTILS\INFOMAIL\NETINFO.ZIP
  645.          Status: Crash File Kill
  646.  
  647.         This would crash the file NETINFO.ZIP to anyone requesting the
  648.         document.  Bear in mind that InfoMail has no control over when
  649.         crash messages are sent, or which messages are sent crash.  It
  650.         is a good idea to make sure that you have full control over when
  651.         and where crashmail messages are sent, using your mailer's
  652.         facilities, if you are to use the Crash flag with InfoMail.
  653.  
  654.         For example, if you have placed no time restrictions on
  655.         crashmail messages then you will want to make sure your mailer
  656.         will not crashmail non-CM nodes.
  657.  
  658.  
  659.  
  660. Setting Up InfoMail                                                   11
  661. InfoMail 1.11
  662.  
  663. 2.2.6.  Remote Maintenance Passwording
  664.  
  665.         InfoMail contains a feature called remote maintenance.  This
  666.         allows people who cannot run InfoMail on their own systems to
  667.         automatically maintain a document at a host system.  All that
  668.         the host system's sysop needs to do is set the document up in
  669.         the first place, and assign a password.
  670.  
  671.         The password is set using the 'Password' field on the document
  672.         record screen.  To enter a password, select 'Password' and type
  673.         in the password, which may be up to 8 characters long.  Leaving
  674.         the password blank disables remote maintenance for this
  675.         document.
  676.  
  677.         As we don't want DOCUMENT.SAM to be altered by users remotely,
  678.         you can leave the Password field blank for this example.
  679.  
  680. 2.2.7.  Document Filename
  681.  
  682.         The last thing you need to tell InfoMail about the document is
  683.         the filename of the text file you want it to send, ie. the text
  684.         document itself.  You can do this by selecting the 'File' field
  685.         label and pressing <RETURN>.  This allows you to enter a
  686.         filename.  When you have finished editing the filename, pressing
  687.         <RETURN> causes InfoMail to accept and capitalise the filename.
  688.  
  689.         It is a good idea to include the full pathname to the file if
  690.         you won't be running InfoMail from its own directory, or if the
  691.         document file itself resides in another directory.
  692.  
  693.         It is not essential that the file exists at this point.  You may
  694.         create the document record before creating the document itself,
  695.         without having to wade through annoying error messages from
  696.         InfoMail.
  697.  
  698.         For this example the filename is DOCUMENT.SAM.  Only you know
  699.         what directory you have installed InfoMail to, and InfoMail does
  700.         not verify the file at this stage, so make sure you have the
  701.         pathname entered correctly.
  702.  
  703. 2.2.8.  Saving the Document Record
  704.  
  705.         At this stage, the document record window should look something
  706.         like the following:
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720. Setting Up InfoMail                                                   12
  721. InfoMail 1.11
  722.  
  723.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  724.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  725.         ▒│ Document  Sample                          Accessed:     0 │▒▒
  726.         ▒│  Macros?  Yes                                             │░▒
  727.         ▒│  Listed?  Yes                                             │░▒
  728.         ▒│  Subject  A Sample Document                               │░▒
  729.         ▒│   Status  Kill                                            │░▒
  730.         ▒│ Password                                                  │░▒
  731.         ▒│     File  C:\UTILS\INFOMAIL\DOCUMENT.SAM                  │░▒
  732.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  733.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  734.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  735.  
  736.         To save the document record, just press ESC.  You will be
  737.         returned to the previous window containing a list of documents,
  738.         and to this list will now be added 'Sample'.
  739.  
  740.         To familiarise yourself with the process of adding documents, it
  741.         may be advisable to try adding another one.  There is only one
  742.         sample provided, so for the second document you will have to
  743.         search your imagination for ideas.  This gives you a free hand
  744.         to experiment with all the features of the document record
  745.         editor.  Once you have created and saved a second document
  746.         record, the document list should look like this:
  747.  
  748.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  749.         ▒╒═══════════════════════════════════════════════════════════╕▒▒
  750.         ▒│ X Document         Subject                                │▒▒
  751.         ▒│   Sample           A Sample Document                      │░▒
  752.         ▒│   MyDocument       Some subject line or other             │░▒
  753.         ▒│                                                           │░▒
  754.         ▒│                                                           │░▒
  755.         ▒│                                                           │░▒
  756.         ▒│                                                           │░▒
  757.         ▒│                                                           │░▒
  758.         ▒│                                                           │░▒
  759.         ▒│                                                           │░▒
  760.         ▒│                                                           │░▒
  761.         ▒╘═══════════════════════════════════════════════════════════╛░▒
  762.         ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
  763.         ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  764.  
  765. 2.2.9.  Editing and Removing Documents
  766.  
  767.         To edit a document, simply select its entry in the list and
  768.         press <RETURN>.  Any part of the document record may be altered,
  769.         including the document name.
  770.  
  771.         To remove a document, select its entry and press <DELETE>.  An
  772.         asterisk (*) character will be placed under the X column header
  773.         (X is the closest way that could be come up with of representing
  774.         'Delete' in a single character).
  775.  
  776.  
  777.  
  778.  
  779.  
  780. Setting Up InfoMail                                                   13
  781. InfoMail 1.11
  782.  
  783.         If you accidentally delete a document, you can 'undelete' it by
  784.         pressing <DELETE> again when its entry is highlighted.  In this
  785.         way, <DELETE> acts as a toggle.  Records are permanently removed
  786.         when you exit the document list maintenance utility.
  787.  
  788. 2.2.10. Saving the Document List
  789.  
  790.         The heading of this section is not a good one, as all changes
  791.         are already saved by the time you want to exit the utility, save
  792.         for the fact that 'deleted' records are still present.
  793.  
  794.         To exit the maintenance utility, press <ESC>.  At this point,
  795.         all the 'deleted' records will be removed permanently.
  796.  
  797. 2.3.    InfoMail Text Files
  798.  
  799.         The document files which InfoMail posts are simple text files on
  800.         your system.  This allows documents to be created in your
  801.         favourite familiar text editor or wordprocessor.  It also allows
  802.         InfoMail to host documents which are automatically generated by
  803.         other utilities, such as game score files and top user lists.
  804.  
  805.         Documents may be in any directory you like, as InfoMail allows
  806.         the files to be referred to by their full pathname.
  807.  
  808. 2.3.1.  System limits and Conventions
  809.  
  810.         InfoMail text documents and outgoing netmails are limited to 16k
  811.         in length.  This is partly because some mail-processing
  812.         utilities are limited to messages of this length, and it is
  813.         partly to discourage the sending of huge text files via routed
  814.         netmail.
  815.  
  816.         If a document you wish to host is longer than 16k, you might
  817.         like to consider offering it as a FREQ, or if routed access is
  818.         imperative, splitting it up into smaller text files.
  819.  
  820.         InfoMail header and footer files are limited to 1k in length.
  821.         This was a programming constraint, and if there is demand, it
  822.         may be changed in future versions of InfoMail.  Since headers
  823.         and footers are typically only a couple of lines in length, it
  824.         is unlikely that a 1k restriction should cause a problem.
  825.  
  826.         A convention for InfoMail text files arises from a peculiarity
  827.         of Fidonet netmail.  A paragraph in a netmail message is stored
  828.         as a continuous line of text.  Message editors reformat these
  829.         paragraphs 'on the fly', preventing netmails from looking 'ugly'
  830.         where the screen width of the recipient differs from that of the
  831.         sender.
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840. Setting Up InfoMail                                                   14
  841. InfoMail 1.11
  842.  
  843.         Because of this feature, you might like to consider putting
  844.         paragraphs in InfoMail documents on a single line, instead of
  845.         reformatting the paragraphs in your editor.  This is
  846.         particularly useful when you start to use Macros, which make the
  847.         length of lines uncertain and can cause ugly reformatting of
  848.         messages if you are not careful.
  849.  
  850.         The last thing to bear in mind when writing InfoMail documents
  851.         is that any kludge lines found in messages will be masked by
  852.         replacing the ^A symbol with an @ sign.  This prevents InfoMail
  853.         and other software from getting confused when technical
  854.         information (such as message ID and originating system) finds
  855.         its way into the document text file.
  856.  
  857. 2.3.2.  Using Macros in Text Files
  858.  
  859.         One important addition to InfoMail 1.10/1.11 is that of Macros.
  860.         These are simple text codes which can be embedded in a document
  861.         or in the standard header and footer files, which are expanded
  862.         into meaningful information when InfoMail posts a document.
  863.  
  864.         Macros are useful because they represent information which can
  865.         be different from one message to the next, so such information
  866.         could not just be inserted into the document as normal text.
  867.         Consider the sample file DOCUMENT.SAM:
  868.  
  869.         ================================================================
  870.         Hello {F}!
  871.  
  872.         This is the document '{D}' which you have requested from {I},
  873.         the {P} server at {A}.  This document has been accessed {C}
  874.         time(s). Other documents may be available at this system,
  875.         contact the sysop for further details.
  876.         ================================================================
  877.  
  878.         Note that in the file itself, the text of the paragraph is all
  879.         on one line, for reasons stated in the previous section.  If the
  880.         user Damian Walker at 2:2502/666.0 requested this document from
  881.         your system, the following message would be returned:
  882.  
  883.         ================================================================
  884.         By: InfoMail 1.11, 1:234/567.8
  885.         To: Damian Walker, 2:2502/666.0
  886.         Re: A Sample Document
  887.         St: Kill
  888.         ----------------------------------------------------------------
  889.         Hello Damian!
  890.  
  891.         This is the document 'Sample' which you have requested from
  892.         InfoMail, the InfoMail 1.11 server at 1:234/567.8.  This
  893.         document has been accessed 2 time(s).  Other documents may be
  894.         available at this system, contact the sysop for further details.
  895.         ================================================================
  896.  
  897.  
  898.  
  899.  
  900. Setting Up InfoMail                                                   15
  901. InfoMail 1.11
  902.  
  903.         If you have set up header and footer files, these will appear at
  904.         the top and bottom of the message text.  Macros can be used in
  905.         these headers and footers just as they can in the message text,
  906.         but note that if a document has 'Macros?' set to 'No', these
  907.         macros will not be expanded.
  908.  
  909.         A full list of available macros is given in the InfoMail
  910.         Reference section.
  911.  
  912. 2.4.    Setting up InfoMail for Multiple Networks
  913.  
  914.         At present, InfoMail has no AKA feature.  However, using other
  915.         features of InfoMail you can indirectly emulate the AKA feature
  916.         in a more versatile manner than a simple feature of entering
  917.         multiple addresses in the setup utility.
  918.  
  919.         The key feature is the -P switch, which tells InfoMail where its
  920.         data files are stored.  Consider the following directory tree:
  921.  
  922.         UTILS
  923.           └─INFOMAIL
  924.               ├─FIDONET
  925.               ├─TREKNET
  926.               └─MERCURY
  927.  
  928.         This assumes, for example purposes, that you have a presence
  929.         (node or point) in the Fidonet, Treknet and Mercurynet networks.
  930.         The \UTILS\INFOMAIL directory would contain INFOMAIL.EXE,
  931.         INFOMAIL.DOC and all the documents common to all three networks.
  932.         The FIDONET, TREKNET and MERCURY directories would contain an
  933.         INFOMAIL.CFG and an INFOMAIL.DAT, along with any documents
  934.         specific to those networks.
  935.  
  936.         By using the -P switch, you could run InfoMail using information
  937.         in each of these directories.  The INFOMAIL.CFG file in each
  938.         directory would have the AKA for that network as its InfoMail
  939.         Address, and could have possibly varying header and footer
  940.         files, customised for that particular network.
  941.  
  942.         The INFOMAIL.DAT file could have entries pointing to common
  943.         documents (ie. they would be identical in each file), as well as
  944.         documents only accessible to those in each particular network.
  945.  
  946.         It is easy to see how this method of implementing AKA's is much
  947.         more powerful than a simple list of addresses in the global
  948.         setup parameters.
  949.  
  950. 2.5.    Upgrading from a Previous Version of InfoMail
  951.  
  952.         This section is only of interest to people running versions 1.00
  953.         and 1.10 of InfoMail, who want a quick and easy, no-fuss upgrade
  954.         procedure.
  955.  
  956.         In order to upgrade InfoMail 1.00 files for use with InfoMail
  957.         1.11, just use the following command line:
  958.  
  959.  
  960. Setting Up InfoMail                                                   16
  961. InfoMail 1.11
  962.  
  963.                 INFOMAIL -U
  964.  
  965.         while in the InfoMail directory.  This will convert both the
  966.         .CFG and the .DAT file to the new standard.  This is necessary
  967.         in order to run InfoMail with your old setup.
  968.  
  969.         This option is a quick-and-dirty upgrade.  It does not use any
  970.         of the new features of InfoMail, it just allows you to use
  971.         InfoMail 1.11 in the same way as you were using 1.00.
  972.  
  973.         It is useful for sysops who are pushed for time, and wish to
  974.         delay taking advantage of new features until later.  It is also
  975.         handy for sysops with a large number of documents, as it removes
  976.         the need for the sysop to re-enter the details of these
  977.         documents.
  978.  
  979.         There are a few things you may wish to know about the 1.00->1.10
  980.         upgrade process, and how it upgrades the files with regard to
  981.         new features:
  982.  
  983.         Header and Footer files are not specified; the fields are blank.
  984.         This means that headers and footers will not automatically be
  985.         added until you say so.
  986.  
  987.         The value of the universal Kill flag of version 1.00 will be
  988.         used in determining the status of outgoing messages for each
  989.         document.  If Kill is set to Yes, then the Kill flag will be set
  990.         for each document.
  991.  
  992.         Macros will be set to No for all documents, in case those
  993.         documents contain brace {} characters.  If you wish to use a
  994.         macro in your header or footer, you must change the Macros field
  995.         to Yes in all your documents (and ensure the documents don't
  996.         contain brace characters as part of their normal text).
  997.  
  998.         Listed will be set to Yes for all documents, so that InfoMail
  999.         1.11 will list them all as 1.00 did.
  1000.  
  1001.         The Subject will be a copy of the document name at first.  This
  1002.         also makes version 1.11 act just like 1.00.
  1003.  
  1004.         It will be desirable to change at least some of these as early
  1005.         as possible.  You may like to change some document names to take
  1006.         advantage of the new 16-character limit, you may like to set
  1007.         Macros to Yes, and set a more descriptive subject line for your
  1008.         documents.
  1009.  
  1010.         If you wish to upgrade from InfoMail 1.10 to InfoMail 1.11, then
  1011.         it is not necessary to run the upgrade utility; 1.10 and 1.11
  1012.         use the same file format.
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020. Setting Up InfoMail                                                   17
  1021. InfoMail 1.11
  1022.  
  1023.         If you are using InfoList, the temporary bug fix program for
  1024.         InfoMail 1.10, you may delete it once you have successfully
  1025.         installed InfoMail 1.11.  InfoList will still work with 1.11, so
  1026.         if you have used it in batch files or elsewhere in your setup,
  1027.         you can leave everything as it is and make the changes at your
  1028.         convenience.
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080. Setting Up InfoMail                                                   18
  1081. InfoMail 1.11
  1082.  
  1083. 3.      USING INFOMAIL
  1084.  
  1085.         Now that you have InfoMail set up, you will want to make proper
  1086.         use of the utility, and that is what this section is all about.
  1087.         If you wish to experiment with InfoMail, it may be a good idea
  1088.         to have handy a message editor capable of writing netmails to
  1089.         the directory you specified in the setup utility.
  1090.  
  1091. 3.1.    Running InfoMail on your Mailer
  1092.  
  1093.         It is your choice exactly how you run InfoMail.  At one extreme,
  1094.         you may run it on an occasional basis, whenever you see a
  1095.         document request come in.  You could run InfoMail in your daily
  1096.         maintenance, posting off documents once per day before or after
  1097.         you call your NC or hub.  Or at the other extreme, you could run
  1098.         InfoMail after each mail call (as the author does).
  1099.  
  1100.         If you are a point, you could run InfoMail directly before or
  1101.         after you have polled your boss for your mail.  Running InfoMail
  1102.         after polling your boss allows you to see the messages InfoMail
  1103.         creates.  Running InfoMail before you poll your boss allows you
  1104.         to see the incoming messages to InfoMail.  These are often a
  1105.         source of amusement, as people write their requests under the
  1106.         impression that no human eyes will see them.
  1107.  
  1108.         Which ever way you do this, the process is simple.  At its
  1109.         simplest, you make sure you are present in the InfoMail
  1110.         directory and run the following command line:
  1111.  
  1112.                 INFOMAIL
  1113.  
  1114.  
  1115.         This reads the setup and document list files from the current
  1116.         directory, scans your netmail directory for document requests
  1117.         and posts replies.  If you wish to run InfoMail from another
  1118.         directory (which is likely if you are running a node), then you
  1119.         must use the -P switch, as follows:
  1120.  
  1121.                 INFOMAIL -PC:\UTILS\INFOMAIL\
  1122.  
  1123.         The trailing backslash is optional, InfoMail adds it internally
  1124.         if it is not already present.  Alternatively, InfoMail has its
  1125.         own environment variable which you may use if the method shown
  1126.         above is not to your taste.  At any time before you run
  1127.         InfoMail, you can type the following at the command line:
  1128.  
  1129.                 SET INFOMAIL=C:\UTILS\INFOMAIL\
  1130.  
  1131.         Substitute for C:\UTILS\INFOMAIL\ the directory in which you
  1132.         have installed InfoMail.  As with the -P switch, the trailing
  1133.         backslash is optional.
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140. Using InfoMail                                                        19
  1141. InfoMail 1.11
  1142.  
  1143.         As InfoMail is running, you see a brief commentary on what it is
  1144.         doing.  When scanning netmail, the message 'Scanning netmail...'
  1145.         and a little rotating bar made of ASCII characters shows that
  1146.         InfoMail is busy.  When a request is found, InfoMail will print
  1147.         this information on the screen as well.
  1148.  
  1149.         InfoMail stores details of all its activities into an ASCII log
  1150.         file, called INFOMAIL.LOG, located in InfoMail's own directory.
  1151.         It is advisable to check this file every once in a while,
  1152.         especially when first setting up InfoMail, as it can help to
  1153.         track down errors caused by incorrectly setting up the program.
  1154.  
  1155. 3.2.    Requesting Documents from InfoMail
  1156.  
  1157.         It is easy for users to request documents from InfoMail.  In our
  1158.         examples from section 2, the document 'Sample' was set up to
  1159.         send DOCUMENT.SAM.  If you wish to try out these examples with
  1160.         your message editor, make sure you have this document set up
  1161.         correctly in the document list editor.
  1162.  
  1163.         To request sample from your system, a user would post the
  1164.         following message:
  1165.  
  1166.         ================================================================
  1167.         By: A User, 2:345/678.9
  1168.         To: InfoMail, 1:234/567.8 <assumes these settings in setup>
  1169.         Re: Sample
  1170.         ----------------------------------------------------------------
  1171.         Message body ignored.
  1172.         ================================================================
  1173.  
  1174.         As the message says, the message body is ignored by InfoMail.
  1175.         It is a good idea to put something in the message body, as some
  1176.         mail processors delete empty messages.  This could happen
  1177.         anywhere along the netmail's route.
  1178.  
  1179.         When this message has arrived at your system (assumed to be
  1180.         1:234/567.8 in this example), and InfoMail is run, the message
  1181.         will be deleted and InfoMail will send out a reply containing
  1182.         the document 'Sample', complete with macros expanded.  The
  1183.         subject and status of the returned message is as set up in the
  1184.         document list maintenance utility.
  1185.  
  1186.         If a user writes to InfoMail requesting a document which does
  1187.         not exist, a polite message is sent back to them telling them of
  1188.         their error, and showing a list of documents which they can
  1189.         request from your system.
  1190.  
  1191. 3.3.    Remotely Updating Documents
  1192.  
  1193.         In order to experiment with this feature, it may be a good idea
  1194.         to set up an updatable document in the document list maintenance
  1195.         utility, ie. a document with an update password.  This section
  1196.         of the manual will assume you have set the document up with the
  1197.         name 'UpdateMe', and the password 'Secret'.
  1198.  
  1199.  
  1200. Using InfoMail                                                        20
  1201. InfoMail 1.11
  1202.  
  1203.         The user addresses a netmail to whatever you have called
  1204.         InfoMail at your system (in the setup utility), with the word
  1205.         UPDATE added on.  For example, if you left your system to answer
  1206.         to the name of InfoMail, the user would address a netmail to
  1207.         InfoMail UPDATE.
  1208.  
  1209.         The subject line of the user's message would contain the
  1210.         document name, a space, and the password.  This is the reason
  1211.         why document names should not contain spaces.  So, for our
  1212.         example, the message would be as follows:
  1213.  
  1214.         ================================================================
  1215.         By: A User, 2:345/678.9
  1216.         To: InfoMail UPDATE, 1:234/567.8
  1217.         Re: UpdateMe Secret
  1218.         ----------------------------------------------------------------
  1219.         These are the updated document contents.
  1220.         ================================================================
  1221.  
  1222.         As you can see, the message body contains the updated document
  1223.         contents.  The body of the message as is will be taken as the
  1224.         new document.
  1225.  
  1226.         This process actually overwrites the existing text file, so it
  1227.         is a good idea to leave the password blank on any document which
  1228.         you do not want to be updated by other users, and to make sure
  1229.         that the only users who know a document's password are those who
  1230.         you want to update the document.
  1231.  
  1232.         These updated documents may contain macros, which will be stored
  1233.         in the text file and expanded whenever the document is posted
  1234.         (just like InfoMail documents which you maintain yourself).
  1235.  
  1236. 3.4.    The InfoMail Semaphore File
  1237.  
  1238.         If you are worried about using InfoMail under a multitasking or
  1239.         multiline system, then there is no need to be concerned.  With
  1240.         InfoMail 1.10/1.11 there has been added a semaphore file, which
  1241.         the program creates when it is fired up and deletes when it has
  1242.         finished.  InfoMail will not run if this file is already present
  1243.         in the InfoMail directory.
  1244.  
  1245.         This means that if InfoMail is running in one DOS session and
  1246.         you (or your node's batch file) tries to start it up in another
  1247.         DOS session, InfoMail will not load a second time.  This
  1248.         prevents sharing violation errors which were a problem with
  1249.         earlier versions of InfoMail (not spotted as the author's system
  1250.         is not multiline).
  1251.  
  1252.         The file InfoMail checks for and creates is INFOMAIL.SEM, and
  1253.         this is a simple empty file.  If it amuses you, you can easily
  1254.         confuse InfoMail by creating the INFOMAIL.SEM file yourself, in
  1255.         which case InfoMail will refuse to run unless you delete it.
  1256.  
  1257.  
  1258.  
  1259.  
  1260. Using InfoMail                                                        21
  1261. InfoMail 1.11
  1262.  
  1263. 4.      INFOMAIL REFERENCE
  1264.  
  1265.         This section of the manual contains a more comprehensive version
  1266.         of the information already covered, in a form which makes it
  1267.         easy for later reference.
  1268.  
  1269. 4.1.    Command Line Format
  1270.  
  1271.         INFOMAIL [-Ppath] [ <-S|-L|-U|-?> ]
  1272.  
  1273.         or
  1274.  
  1275.         INFO386 [-Ppath] [ <-S|-L|-U|-?> ]
  1276.  
  1277.         -Ppath specifies the directory in which InfoMail will find its
  1278.         INFOMAIL.CFG and INFOMAIL.DAT files (ie. the global setup and
  1279.         the document list file).
  1280.  
  1281.         -S enters the setup utility.
  1282.  
  1283.         -L enters the document list maintenance utility.
  1284.  
  1285.         -U upgrades an existing InfoMail 1.00 installation to InfoMail
  1286.         1.11.  A simple file length check is made to ensure that you do
  1287.         not run this after you have already upgraded InfoMail.
  1288.  
  1289.         -? requests a simple help screen which contains this
  1290.         information.
  1291.  
  1292.         All swiches may be specified with a DOS-style slash (?) instead
  1293.         of a hyphen (-).  In addition, the path in the -P switch may
  1294.         contain DOS backslashes (\) or Unix/Amiga slashes (/).  All
  1295.         switches may be in upper or lower case.
  1296.  
  1297.         The -P or /P option must have a space following the filename, if
  1298.         it is followed by one of the other options.  The other options
  1299.         do not need a space if you are using DOS-style slashes for them.
  1300.         So the following are legal command lines for invoking InfoMail:
  1301.  
  1302.         INFOMAIL /S/Pc:\utils\infomail
  1303.         INFOMAIL -s -pc:/utils/infomail
  1304.         INFOMAIL /Pc:/utils/infomail /S
  1305.  
  1306.         whereas the following are not legal:
  1307.  
  1308.         INFOMAIL /Pc:\utils\infomail/S
  1309.         INFOMAIL /Pc:/utils/infomail/S
  1310.  
  1311. 4.2.    Global Setup Fields
  1312.  
  1313.         Netmail: This is the directory in which your system stores its
  1314.         *.MSG netmails.  Either DOS or Unix style directory separators
  1315.         may be used.  If no slash or backslash is added to the end of
  1316.         this name, InfoMail will add a DOS-style backslash.
  1317.  
  1318.  
  1319.  
  1320. InfoMail Reference                                                    22
  1321. InfoMail 1.11
  1322.  
  1323.         Name: This is the name InfoMail will respond to.  Unlike version
  1324.         1.00, InfoMail 1.10/1.11 will not post its replies from this
  1325.         name, but will use the name InfoMail 1.11 instead.
  1326.  
  1327.         Address: This is the address of your system, or an alternative
  1328.         AKA you wish InfoMail requests to be addressed to.  If no point
  1329.         number is used, .0 will be added by InfoMail.
  1330.  
  1331.         Header: This is the full path and filename of your standard
  1332.         header file (text to be posted at the top of every outgoing
  1333.         document).  If left blank, no header will be used.  It may
  1334.         contain DOS or Unix style directory separators.
  1335.  
  1336.         Footer: This is the full path and filename of your standard
  1337.         footer file (text to be posted at the bottom of everyo outgoing
  1338.         document).  If left blank, no footer will be used.  It may
  1339.         contain DOS or Unix style directory separators.
  1340.  
  1341. 4.3.    Document List Fields
  1342.  
  1343.         Document: The document name, up to 16 characters in length.
  1344.         This is the name which users will place on the subject line to
  1345.         request or update the document.
  1346.  
  1347.         Accessed: This is the access counter, showing how many times a
  1348.         document has been accessed (requested or updated).  It may be
  1349.         embedded in documents, headers and footers as a macro.  It may
  1350.         be reset to 0, but no other value may be placed in this field.
  1351.  
  1352.         Macros?: A flag to say whether macros will be expanded in this
  1353.         document or not.  Set to 'No' in order to prevent confusion when
  1354.         documents contain braces {} as part of their ordinary text.
  1355.  
  1356.         Listed?: A flag to say whether the document will be listed in a
  1357.         document list.  This is useful for creating 'secret' documents,
  1358.         and in effect the document name of a non-listed document acts as
  1359.         its password.
  1360.  
  1361.         Subject: The subject line of outgoing messages which contain
  1362.         this document in the message body.  May be used as a file name
  1363.         in conjunction with certain message status flags.
  1364.  
  1365.         Status: The outgoing message status.  Flags which may be set are
  1366.         Crash, Hold, Kill, File, FReq, Update.  When File, FReq or
  1367.         Update is used, the subject acts as a filename.
  1368.  
  1369.         File: The full path and filename of the document text file.
  1370.  
  1371. 4.4.    InfoMail Text Macros
  1372.  
  1373.         {A} - The address of this system as defined in the setup
  1374.         utility, eg. '2:2502/666.0'
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380. InfoMail Reference                                                    23
  1381. InfoMail 1.11
  1382.  
  1383.         {C} - The access counter, eg. '3'.
  1384.  
  1385.         {D} - The tag name of this document, eg. 'Sample'.
  1386.  
  1387.         {F} - The first name of the user who has requested this
  1388.         document, eg. 'Damian'
  1389.  
  1390.         {I} - The name which InfoMail answers to at this system, eg.
  1391.         'InfoMail'.
  1392.  
  1393.         {L} - The last name of the user who has requested this document,
  1394.         eg. 'Walker'
  1395.  
  1396.         {N} - The full name of the user who has requested this document,
  1397.         eg. 'Damian Walker'
  1398.  
  1399.         {P} - The full program name and version, in this version,
  1400.         'InfoMail 1.11'.
  1401.  
  1402.         {S} - The subject line for this document, eg. 'A Sample
  1403.         Document'.
  1404.  
  1405.         {U} - The Fidonet address of the user who has requested this
  1406.         document, eg. '2:345/678.9'.
  1407.  
  1408.         Each macro can contain a numeric length specifier within the
  1409.         braces, which expands macros to this minimum length, for
  1410.         example, {C5} for a 5-character access counter or {D16} for a
  1411.         16-character document name.  The length specifier can occur
  1412.         before or after the macro letter, eg. {16D} instead of {D16}.
  1413.         If you really want to be perverse, you could even use {1D6},
  1414.         though it is not guaranteed that this will always be the case in
  1415.         future versions.
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440. InfoMail Reference                                                    24
  1441. InfoMail 1.11
  1442.  
  1443. 5.      DEVELOPER'S GUIDE
  1444.  
  1445.         This developer's guide allows other software authors to write
  1446.         additional utilities to service InfoMail, or to allow InfoMail
  1447.         to function as an integral part of some larger package.
  1448.  
  1449.         Examples which spring to mind are programs which may
  1450.         automatically sort, edit or add to the document list.
  1451.  
  1452. 5.1.    The InfoMail File Formats
  1453.  
  1454.         There are two files which you will need to know about for
  1455.         InfoMail, and these are INFOMAIL.CFG and INFOMAIL.DAT.
  1456.  
  1457.         INFOMAIL.CFG
  1458.  
  1459.         This is the file modified by the setup utility.  It consists of
  1460.         a single header record and a single configuration record, built
  1461.         up as follows:
  1462.  
  1463.         Header Record
  1464.  
  1465.         This is an 8-character record which should contain the text
  1466.         INF110S<NUL> where <NUL> is the ASCII value zero.  If this
  1467.         header is not present, InfoMail will assume that an invalid
  1468.         setup file, or no setup file, is present, and will create a new
  1469.         setup file in its place.
  1470.  
  1471.         Configuration Record
  1472.  
  1473.         This contains a number of fields, for which the programming
  1474.         aspects are described below.  The purpose of these fields is
  1475.         discussed from a user's perspective in section 4.2.
  1476.  
  1477.         Netmail: This is a 64-character null-terminated string (or
  1478.         character array, if you like).  It must contain a trailing
  1479.         backslash or slash if InfoMail is to function properly.
  1480.         InfoMail adds this when a user enters a new value, it does _not_
  1481.         add the trailing backslash each time the netmail scan is run.
  1482.  
  1483.         Name: This is a 36-character null-terminated string.  A lack of
  1484.         null termination on this or any stored InfoMail string will
  1485.         cause the program to do something silly.
  1486.  
  1487.         Address: A set of four 2-byte signed integers, representing
  1488.         zone, net, node and point of the Fidonet address.  InfoMail
  1489.         internally groups these with the Name using the ftnuser
  1490.         structure described later on.
  1491.  
  1492.         Flags: This field is a 2-byte integer used in previous versions
  1493.         of InfoMail for a universal Kill flag; a non-zero value
  1494.         specified that outbound messages were to be killed when sent.
  1495.         Future versions of InfoMail may use this field for any global
  1496.         flags which may be needed.
  1497.  
  1498.  
  1499.  
  1500. Developer's Guide
  1501. InfoMail 1.11
  1502.  
  1503.         Header/Footer: These are 64-character null-terminated strings.
  1504.         InfoMail capitalises these values before they are saved, so it
  1505.         is advisable that any other program does the same for aesthetic
  1506.         reasons.  The validity of these fields is only checked by
  1507.         InfoMail (or more accurately, DOS) when attempting to open them.
  1508.  
  1509.         INFOMAIL.DAT
  1510.  
  1511.         This is the document list, which contains a single header record
  1512.         and an unlimited number of document records.  InfoMail is
  1513.         limited to 32767 document records simply because the document
  1514.         number is held internally as a 2-byte signed integer.
  1515.  
  1516.         Header Record
  1517.  
  1518.         This is a simple 8-character string containing the value
  1519.         INF110D<NUL>, where <NUL> is the ASCII character 0.  If the
  1520.         value of this field is different, InfoMail will assume an
  1521.         invalid or non-existent data file, and will attemp to create a
  1522.         new file in its place.
  1523.  
  1524.         Document Record
  1525.  
  1526.         This contains a number of autonomous and combined fields,
  1527.         described from a programmer's point of view below.  A
  1528.         description of the use of these fields is given in section 4.2.
  1529.  
  1530.         Deleted:  A 2-byte integer used internally by InfoMail to mark
  1531.         deleted records.  As deleted records are removed by InfoMail
  1532.         upon exit of the document list utility, this field should always
  1533.         contain zero.  Putting any other value here will cause documents
  1534.         to be shown as 'deleted' when the user enters the document list
  1535.         utility.
  1536.  
  1537.         Name: A null-terminated 17-character string, or character array.
  1538.         Lack of null termination will cause InfoMail to behave in a
  1539.         silly fashion.
  1540.  
  1541.         Flags: This is a 2-byte integer which serves as the Macros and
  1542.         Listed flags.  Bit 0 (value 0/1) is the Macros flag, and bit 1
  1543.         (value 0/2) is the Listed flag.  The other bits are not
  1544.         currently used, but may be used in the future, so they ought to
  1545.         be set to 0.
  1546.  
  1547.         Subject: A simple 64-character null-terminated string.
  1548.  
  1549.         Attribute: A 2-byte status word in the format defined in the
  1550.         technical document FTS-1.  This status flag is copied to the
  1551.         attribute field of all outgoing messages.  InfoMail always sets
  1552.         the Pvt and Local flags in this field upon creating a new
  1553.         document record, but does not subsequently check them.  For a
  1554.         full description of the attribute flags, refer to document
  1555.         FTS-1.
  1556.  
  1557.  
  1558.  
  1559.  
  1560. Developer's Guide
  1561. InfoMail 1.11
  1562.  
  1563.         Password: A null-terminated 9-character string, allowing up to 8
  1564.         characters to be used as a password.
  1565.  
  1566.         File: A null-terminated 64-character string.  The existence of
  1567.         this file is not checked by InfoMail until it attempts to post
  1568.         it in response to a request.
  1569.  
  1570. 5.2.    Supplied InfoMail Headers
  1571.  
  1572.         A single header file is supplied in the InfoMail archive, and
  1573.         this is INFOMAIL.H.  This contains the structures for the setup
  1574.         file and the document list file.
  1575.  
  1576. 5.3.    Messages Generated by InfoMail
  1577.  
  1578.         Messages generated by InfoMail are to the standard defined by
  1579.         FTS-1, and include the zone and point fields defined in the
  1580.         later versions of this document.
  1581.  
  1582.         InfoMail also includes the following kludge lines in the
  1583.         messages:
  1584.  
  1585.         ^APID   The InfoMail 1.11 program ID
  1586.  
  1587.         ^AMSGID A random message ID
  1588.  
  1589.         ^AFMPT  Set on messages generated from a point address
  1590.  
  1591.         ^ATOPT  Set on messages send to a point address
  1592.  
  1593.         ^AINTL  Generated on all messages
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620. Developer's Guide
  1621. InfoMail 1.11
  1622.  
  1623. 6.      CONCLUSION
  1624.  
  1625.         It is hoped that you will find InfoMail useful.  As mentioned
  1626.         earlier in the document, if you find the program useful, the
  1627.         author would appreciate a netmail from you, saying what you
  1628.         think of the program, and what uses you have found for it.
  1629.  
  1630.         Suggestions for improvement are also welcome; indeed, several of
  1631.         the improvements built into InfoMail 1.10/1.11 have been things
  1632.         which the author would not have thought to include himself.
  1633.  
  1634.         Version 1.00 has attracted interest around the world, despite
  1635.         the fact that other document servers had already been written.
  1636.         The improvements in version 1.10 attracted more people to this
  1637.         easy way of distributing information to interested parties, and
  1638.         hopefully this bug fix release will solve any problems
  1639.         experienced by users of InfoMail 1.10.
  1640.  
  1641.         Although I cannot guarantee that a future version of InfoMail
  1642.         will be released, your ideas for new features will be welcome.
  1643.  
  1644.         Enjoy!
  1645.  
  1646.         Damian Walker, Centurion (2:2502/666), June 1996.
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680. Conclusion                                                            28
  1681.  
  1682.